﻿using System.Collections.Generic;
using System.Runtime.Serialization;
using MyFloridaHouse.libSvDTO;

namespace MyFloridaHouse.libSTO
{
	/// <summary>
	/// Region Data List STO (server transfer object)
	/// </summary>
    [DataContract]
    public class RegionDataListSTO
    {
        int _layerID;
        List<RegionDataNameAndValueDTO> _regionDataList;
        string _errorMessage;

		/// <summary>
		/// Initializes a new instance of the <see cref="RegionDataListSTO"/> class.
		/// </summary>
        public RegionDataListSTO()
        {
            _regionDataList = new List<RegionDataNameAndValueDTO>();
            _layerID = -1;
            _errorMessage = "";
        }

		/// <summary>
		/// Gets or sets the region data list of <see cref="RegionDataNameAndValueDTO"/>
		/// </summary>
		/// <value>The region data list.</value>
        [DataMember]
        public List<RegionDataNameAndValueDTO> regionDataList
        {
            get { return _regionDataList; }
            set { _regionDataList = value; }
        }

		/// <summary>
		/// Gets or sets the layer ID.
		/// Index in the layer table <see cref="LayerDTO"/>
		/// </summary>
		/// <value>The layer ID.</value>
        [DataMember]
        public int layerID
        {
            get { return _layerID; }
            set { _layerID = value; }
        }

		/// <summary>
		/// Gets or sets the error message.
		/// </summary>
		/// <value>The error message.</value>
        [DataMember]
        public string errorMessage
        {
            get { return _errorMessage; }
            set { _errorMessage = value; }
        }

    }
}
